@use '@scss/common' as *;

.desktopAccordionWrapper {
  position: relative;
  align-items: center;
  height: 100%;
}

.scanlineDesktopWrapper,
.gradientDesktopWrapper,
.transparentDesktopWrapper {
  position: relative;
}

.gradientBg {
  position: absolute;
  top: 0;
  left: 1px;
  width: calc(100% - 2px);
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.transparentBg {
  position: absolute;
  top: 0;
  left: 1px;
  width: calc(100% - 2px);
  height: 100%;
  pointer-events: none;
  background-color: transparent;
}

.crosshairTopOne,
.crosshairTopTwo,
.crosshairBottomOne,
.crosshairBottomTwo {
  position: absolute;
  width: 1rem;
  height: auto;
  color: var(--theme-elevation-1000);
  opacity: 0.5;
  z-index: 2;
}

.crosshairTopOne {
  top: -0.5rem;
  left: -0.5rem;
}

.crosshairTopTwo {
  top: -0.5rem;
  right: -0.5rem;
}

.crosshairBottomOne {
  bottom: -0.5rem;
  left: -0.5rem;
}

.crosshairBottomTwo {
  bottom: -0.5rem;
  right: -0.5rem;
}

.crosshairTopRight,
.crosshairBottomRight {
  position: absolute;
  width: 1rem;
  height: auto;
  color: var(--theme-elevation-1000);
  opacity: 0.5;
}

.crosshairTopRight {
  top: -0.5rem;
  right: -0.5rem;
}

.crosshairBottomRight {
  bottom: -0.5rem;
  right: -0.5rem;
}

.introWrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 3.5rem;
}

.leader {
  @include h6;
  & {
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #4d90b2;
  }
}

.heading {
  @include h3;
  & {
    margin-top: 0;
    margin-bottom: 0;
  }
}

.collapsibleWrapper {
  position: relative;
  border-top: 1px solid var(--grid-line-dark);

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: var(--color-base-0);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  &:last-child {
    border-bottom: 1px solid var(--grid-line-dark);
  }

  &:hover {
    .togglerTitle {
      color: var(--color-base-0);
    }
  }

  @include data-theme-selector('light') {
    border-top: 1px solid var(--grid-line-light);

    &:before {
      background: var(--color-base-1000);
    }

    &:last-child {
      border-bottom: 1px solid var(--grid-line-light);
    }

    &:hover {
      .togglerTitle {
        color: var(--color-base-1000);
      }
    }
  }

  @include data-theme-selector('dark') {
    border-top: 1px solid var(--grid-line-dark);

    &:before {
      background: var(--color-base-0);
    }

    &:last-child {
      border-bottom: 1px solid var(--grid-line-dark);
    }

    &:hover {
      .togglerTitle {
        color: var(--color-base-0);
      }
    }
  }
}

.activeLeftBorder {
  &::before {
    opacity: 1;
  }
}

.collapsibleToggler {
  @include btnReset;
  & {
    cursor: pointer;
    width: 100%;
    text-align: unset;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  &:hover {
    .title {
      color: var(--color-base-0);
    }
  }

  @include data-theme-selector('light') {
    &:hover {
      .title {
        color: var(--color-base-1000);
      }
    }
  }

  @include data-theme-selector('dark') {
    &:hover {
      .title {
        color: var(--color-base-0);
      }
    }
  }
}

.togglerTitle {
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease-in-out;

  @include data-theme-selector('light') {
    color: var(--text-light);
  }

  @include data-theme-selector('dark') {
    color: var(--text-dark);
  }
}

.activeItem {
  cursor: unset;
  pointer-events: none;

  .togglerTitle {
    color: var(--color-base-0);

    @include data-theme-selector('light') {
      color: var(--color-base-1000);
    }

    @include data-theme-selector('dark') {
      color: var(--color-base-0);
    }
  }
}

.chevronDownIcon {
  transition: transform 0.3s ease-in-out;
}

.rotateChevron {
  transform: rotate(180deg);
}

.collapsibleContent {
  position: relative;
}

.contentWrapper {
  margin: 0;
  font-size: 16px;
  line-height: 150%;
  color: var(--text-dark);
  padding: 0 1.5rem 1.5rem 1.5rem;

  @include data-theme-selector('light') {
    color: var(--text-light);
  }

  @include data-theme-selector('dark') {
    color: var(--text-dark);
  }
}

.mediaDescription {
  padding-bottom: 1rem;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-base-0);
  font-weight: 500;
  text-decoration: none;

  .arrowIcon {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.3s ease;
  }

  &:hover {
    .arrowIcon {
      transform: translateX(10px);
    }
  }

  @include data-theme-selector('light') {
    color: var(--color-base-1000);

    .arrowIcon {
      path {
        stroke: var(--color-base-1000);
      }
    }
  }

  @include data-theme-selector('dark') {
    color: var(--color-base-0);

    .arrowIcon {
      path {
        stroke: var(--color-base-0);
      }
    }
  }
}

.mediaDesktopContainer {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  transition: opacity 0.5s ease-in-out;
  z-index: 2;

  > div {
    height: 100%;

    img {
      object-fit: cover;
      width: 100%;
      height: 100%;
    }
  }
}
